﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Content/Default.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<%@ Import Namespace="SCS.Core" %>
<%@ Import Namespace="SCS.Core.Models" %>
<%@ Import Namespace="SCS.Core.Models.ModelsFontend" %>
<%@ Import Namespace="SCS.Core.ViewModels" %>
<%@ Import Namespace="SCSService" %>
<script runat="server">
protected override void OnPreInit(EventArgs e)
{
    base.OnPreInit(e);
    this.MasterPageFile = ViewData["MasterPage"] != null ? ViewData["MasterPage"].ToString() : "~/Content/Default.Master";
}
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<title><%=ViewData["title"]%></title>
    <meta name="Powered-By" content="<%=ViewData["PoweredBy"] %>" />
    <meta name="dc.creator" content="<%=ViewData["dcCreator"] %>" />
    <meta name="Author" content="<%=ViewData["Author"] %>" />
    <meta name="robots" content="<%=ViewData["robots"] %>" />
    <meta name="description" content="<%=ViewData["description"] %>" />
    <meta name="keywords" content="<%=ViewData["keyword"] %>" />
    <meta name="dc.language" content="<%=ViewData["language"] %>" />
    <meta name="dcterms.created" content="<%=ViewData["created"] %>" />
    <meta name="dcterms.modified" content="<%=ViewData["modified"] %>" />
    <meta name="revisit-after" content="<%=ViewData["revisitAfter"] %>"/>
    <meta name="DatePublication" content="<%=ViewData["datePublichcation"] %>" />
    <meta name="Homepage" content="<%=ViewData["homePage"] %>" />
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
  
   
    
           <%
           if (ViewData["ListControl"] != null)
           {
               List<Config_Control> list = (List<Config_Control>)ViewData["ListControl"];
               
               foreach (var item in list)
               {
                   if (item.IsAction == true)
                   {
                       Html.RenderAction(item.ControlName);
                       
                   }
                   else if(item.IsAction==false)
                   {
                       Html.RenderPartial(item.ControlPath);
                   }
               }
           }
           
        %> 	
    

</asp:Content>
